This article focuses on the properties of the HTML input tag, as well as the specific usage summary of the HTML input tag. Let's take a look at what the HTML input tag does.
First of all, the properties of the HTML input tag:
1.type: This property
Understand the 23 types and input23 types of input elements in HTML FormsTraditional text password file radio checkbox hidden button image reset submit new type color tel email url search number range date month week time datetime-local
With the
One, input type=file and file uploadThis article refers to the input type=file type type is file the input element, the simplest HTML code is as follows:But, in order to get used to it, we write more:Before the advent of HTML5 (XHTML), our closure
Objects defined by Dynamic HTML are listed below. Click the link to go to the object definition, which contains all the member sets of the object.
! DOCTYPE
Specifies the document type definition (DTD) that HTML documents follow ).
I haven't figured out the difference between name and id in input till now. I have encountered this problem in my study. I 've been sorting out the collected information for a long time before I can use it as a website, however, we have not yet
1. The type attribute of the input tag
Property
Value
Describe
Type
button
Define clickable buttons (in most cases, use JavaScript to launch scripts).
File
Define input fields and
I. SummaryThis article explains how to use jQuery to obtain and operate the attributes and CSS styles of elements. The distinction between DOM attributes and element attributes is worth learning.Ii. Preface We have been able to fully control the
I have learned jquery for a while, but I have always been confused about the attributes of HTML, Val, and text, and their relationships and differences, below I will give you some examples to distinguish the relationship between jquery and the three.
Dom:Attribute: Attribute$ ("P"). addClass (style type defined in css); add a style to an element$ ("Img"). attr ({src: "test.jpg", title: "test Image"}); add attributes/values to an element. The parameter is map.$ ("Input"). attr ({"checked",
Comprehensive Analysis of standard and Custom Attributes in HTML5, comprehensive analysis of html5
As described in HTML5 syntax, an element can contain attributes to set properties for an element ).
Some attributes are defined as global and can be
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.